<?php
session_cache_expire(999999999);
	if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
	
	//require_once "caching.php";
	//$cache = new SimpleCache();

	//$lastpage = $_SESSION['lastpage'];
	$id_employee=$_SESSION['IDEmployee'];
	
	include 'connection.php';
	if(isset($_POST['bt-en'])){
		mysql_query("UPDATE employee SET CurrentLanguage='EN' WHERE (IDEmployee='$id_employee')");
		$_SESSION['lang']="EN";
	} else if(isset($_POST['bt-kr'])){
		mysql_query("UPDATE employee SET CurrentLanguage='KR' WHERE (IDEmployee='$id_employee')");
		$_SESSION['lang']="KR";
	} else if(isset($_POST['bt-vn'])){
		mysql_query("UPDATE employee SET CurrentLanguage='VN' WHERE (IDEmployee='$id_employee')");
		$_SESSION['lang']="VN";
	}
	mysql_close($connection);
	echo "<script>window.history.back();</script> ";
?>